package rudy.elevator.ui;


import javax.swing.JPanel;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class TestPanel extends JPanel implements KeyListener {
    public TestPanel() {
        //this.addKeyListener(this);
         addKeyListener(this);
         setFocusable(true);
    }

    public void keyTyped(KeyEvent e) {
         System.out.println("Typped: " + e.getKeyCode());
    }

    public void keyPressed(KeyEvent e) {
         System.out.println("keyPressed: " + e.getKeyCode());
    }

    public void keyReleased(KeyEvent e) {
         System.out.println("keyReleased: " + e.getKeyCode());
    }
}
